/**
 * 解析jwt token
 * @param token 
 * @returns 
 */
export function parseJwt(token:string):any{
    token=token.replace(/_/g,"/").replace(/_/g,"+");
    let json=decodeURIComponent(escape(window.atob(token.split(".")[1])));
    return JSON.parse(json);
}